package cn.iocoder.yudao.module.wms.controller.admin.stock.vo;

import cn.iocoder.yudao.module.wms.dal.dataobject.inventory.InventoryDO;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.VO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 存货管理子表 Response VO")
@Data
@ExcelIgnoreUnannotated
public class StockLogRespVO implements VO {

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "23371")
    @ExcelProperty("id")
    private Integer id;

    @Schema(description = "存货id", example = "30225")
    @ExcelProperty("存货id")
    @Trans(type = TransType.SIMPLE, target = InventoryDO.class, fields = {"code","name","specModel"}, refs = {"inventoryCode","inventoryName","inventorySpecModel"})
    private Integer inventoryId;
    private String inventoryCode;
    private String inventoryName;
    private String inventorySpecModel;
    private String inventoryBrand;
    private String inventoryIsBatch;
    private String inventoryUnitName;
    @Schema(description = "数量")
    @ExcelProperty("数量")
    private Double qty;

    /***
     * 已使用数量
     */
    private Double useQty;
    /**
     * 税率
     */
    private Double irate;
    /**
     * 单价
     */
    private BigDecimal price;
    /**
     * 含税单价
     */
    private BigDecimal itaxprice;
    //订单ID
    private Integer orderId;
    //订单类型
    private String orderType;
    private String remark;

    /***
     * 仓库
     */

    private Integer warehouseId;
    /***
     * 货位
     */
    private Integer locationId;

    /***
     * 批次号
     */
    private String batchCode;
}